//
//  BookListCollectionViewCell.m
//  Learn
//
//  Created by 迟建国 on 2024/4/2.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import "BookListCollectionViewCell.h"
#import "TextbookModel.h"
@implementation BookListCollectionViewCell
- (void)setScanBook:(ScanBookModel *)scanBook {
    _scanBook = scanBook;
    self.nameL.text = scanBook.productName;
    [self.imageV sd_setImageWithURL:[NSURL URLWithString:scanBook.cover_full] placeholderImage:[UIImage imageNamed:@""]];
}
- (void)setModel:(TextbookModel *)model {
    _model = model;
    self.nameL.text = model.productName;
    [self.imageV sd_setImageWithURL:[NSURL URLWithString:model.cover_full] placeholderImage:[UIImage imageNamed:@""]];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
